<template>
  <a :href="props.url" v-if="store.isMobileType" class="unitdigitalShowroom-box">
    <img class="blinking-animation-style" :src="publicUrls + 'free/style3/free3unitdigitalShowroom2.png'" alt="" />
  </a>
  <t-tooltip content="查看本单元全景展厅" placement="bottom" v-else>
    <a class="unitdigitalShowroom-box" :href="props.url" target="blank">
      <img class="blinking-animation-style"  :src="publicUrls + 'free/style3/free3unitdigitalShowroom2.png'" alt="" />
    </a>   
  </t-tooltip>   
</template>     
   
<script setup> 
import { useRouter, useRoute } from 'vue-router';
import { publicUrls } from '@/utils/minxin'; 
import { useProjectStore } from '@/store';
const store = useProjectStore();
const props = defineProps({
  url: {  
    type: String, 
  },
});
</script> 
 
<style lang="less" scoped>
.unitdigitalShowroom-box {
  width: 50px;
  height: 50px;
  img {
    width: 50px;
    height: 50px; 
    object-fit: contain;
  }
}
</style>